package v.book.read.tip.statemachine2.vm.input;

import v.book.read.tip.statemachine2.Input;

public final class Money implements Input {
    private String name;
    private int value;
    private Money(String nm, int val) {
        name = nm;
        value = val;
    }
    public String toString() { return name; }
    public int getValue() { return value; }
    public final static Money
        quarter = new Money("Quarter", 25),
        dollar = new Money("Dollar", 100);
}